package operation;

import book.Book;
import book.BookList;

public class ExitSystem implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("退出系统");
        int currentSize=bookList.getUseSize();
        for (int i = 0; i <currentSize ; i++) {
            Book book=bookList.getBook(i);
            bookList.setBook(i,null);
        }
        System.exit(0);
    }
}
